/*************************************************************************
> File Name: main.cpp
> Author: hzy
> Created Time: 2023-08-11 10:37:02
> Description: 友元类
************************************************************************/
#include "friend.h"
#include "B.h"

int main()
{
    Friend obj(10);

    B bobj;

    cout << bobj.getObjVal(obj) << endl;

    bobj.setObjVal(obj,22);
    cout << bobj.getObjVal(obj) << endl;
    bobj.showObj(obj);

    return 0;
}